RequestCompleted

public interface RequestCompleted implements NetworkEvent

An event indicating that the URL request has been completed.

Functions

Link copied to clipboard
public NetError errorCode()
Returns the URL request error code.
Link copied to clipboard
public boolean isCached()
Returns true if the response has been taken from cache.
Link copied to clipboard
public Network network()
Returns the Network instance initiated this event.
Link copied to clipboard
public int responseCode()
Returns the HTTP response code or 0 if the request has been failed or canceled.
Link copied to clipboard
public UrlRequestStatus status()
Returns the status of the URL request.
Link copied to clipboard
Returns the URL request that has been completed.